package models;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the t_DeliveryOrder database table.
 * 
 */
@Entity
@Table(name="t_DeliveryOrder")
//@NamedQuery(name="DeliveryInfo_T_Entity.findAll", query="SELECT t FROM DeliveryInfo_T_Entity t")
public class DeliveryInfo_T_Entity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="arrive_position", length=255)
	private String arrivePosition;

	@Column(name="arrive_time")
	private String arriveTime;

	@Column(name="audit_reason", length=100)
	private String auditReason;

	@Column(name="audit_status")
	private int auditStatus;

	@Column(name="auditor_id")
	private int auditorId;

	private int fd_ContractId;

	@Column(length=30)
	private String fd_createDate;

	@Column(nullable=false, length=50)
	private String fd_DeliveryOrderID;
		
	@Column(nullable=false, length=50)
	private String fd_ParentSubID;
	
	@Column(nullable=false, length=50)
	private String fd_SubId;

	@Column(nullable=false, precision=10, scale=2)
	private BigDecimal fd_DeliveryQty;

	@Column(precision=10, scale=2)
	private BigDecimal fd_DeliveryQty_audited;

	private String fd_EndDate;

	@Column(length=255)
	private String fd_LastDay;

	@Column(nullable=false)
	private String fd_ModifiedDate;
	
	private Integer fd_ParentId;

	@Column(length=255)
	private String fd_QueryNow;

	@Id
	@Column(nullable=false)
	private int fd_RowID;

	@Column(length=50)
	private String fd_SendPlace;

	@Column(nullable=false)
	private String fd_ValidDate;

	private int submitter;

	public DeliveryInfo_T_Entity() {
	}

	public String getArrivePosition() {
		return this.arrivePosition;
	}

	public void setArrivePosition(String arrivePosition) {
		this.arrivePosition = arrivePosition;
	}

	public String getArriveTime() {
		return this.arriveTime;
	}

	public void setArriveTime(String arriveTime) {
		this.arriveTime = arriveTime;
	}

	public String getAuditReason() {
		return this.auditReason;
	}

	public void setAuditReason(String auditReason) {
		this.auditReason = auditReason;
	}

	public int getAuditStatus() {
		return this.auditStatus;
	}

	public void setAuditStatus(int auditStatus) {
		this.auditStatus = auditStatus;
	}

	public int getAuditorId() {
		return this.auditorId;
	}

	public void setAuditorId(int auditorId) {
		this.auditorId = auditorId;
	}

	public int getFd_ContractId() {
		return this.fd_ContractId;
	}

	public void setFd_ContractId(int fd_ContractId) {
		this.fd_ContractId = fd_ContractId;
	}

	public String getFd_createDate() {
		return this.fd_createDate;
	}

	public void setFd_createDate(String fd_createDate) {
		this.fd_createDate = fd_createDate;
	}

	public String getFd_DeliveryOrderID() {
		return this.fd_DeliveryOrderID;
	}

	public void setFd_DeliveryOrderID(String fd_DeliveryOrderID) {
		this.fd_DeliveryOrderID = fd_DeliveryOrderID;
	}

	public BigDecimal getFd_DeliveryQty() {
		return this.fd_DeliveryQty;
	}

	public void setFd_DeliveryQty(BigDecimal fd_DeliveryQty) {
		this.fd_DeliveryQty = fd_DeliveryQty;
	}

	public BigDecimal getFd_DeliveryQty_audited() {
		return this.fd_DeliveryQty_audited;
	}

	public void setFd_DeliveryQty_audited(BigDecimal fd_DeliveryQty_audited) {
		this.fd_DeliveryQty_audited = fd_DeliveryQty_audited;
	}

	public String getFd_EndDate() {
		return this.fd_EndDate;
	}

	public void setFd_EndDate(String fd_EndDate) {
		this.fd_EndDate = fd_EndDate;
	}

	public String getFd_LastDay() {
		return this.fd_LastDay;
	}

	public void setFd_LastDay(String fd_LastDay) {
		this.fd_LastDay = fd_LastDay;
	}

	public String getFd_ModifiedDate() {
		return this.fd_ModifiedDate;
	}

	public void setFd_ModifiedDate(String fd_ModifiedDate) {
		this.fd_ModifiedDate = fd_ModifiedDate;
	}

	public Integer getFd_ParentId() {
		return this.fd_ParentId;
	}

	public void setFd_ParentId(Integer fd_ParentId) {
		this.fd_ParentId = fd_ParentId;
	}

	public String getFd_QueryNow() {
		return this.fd_QueryNow;
	}

	public void setFd_QueryNow(String fd_QueryNow) {
		this.fd_QueryNow = fd_QueryNow;
	}

	public int getFd_RowID() {
		return this.fd_RowID;
	}

	public void setFd_RowID(int fd_RowID) {
		this.fd_RowID = fd_RowID;
	}

	public String getFd_SendPlace() {
		return this.fd_SendPlace;
	}

	public void setFd_SendPlace(String fd_SendPlace) {
		this.fd_SendPlace = fd_SendPlace;
	}

	public String getFd_ValidDate() {
		return this.fd_ValidDate;
	}

	public void setFd_ValidDate(String fd_ValidDate) {
		this.fd_ValidDate = fd_ValidDate;
	}

	public int getSubmitter() {
		return this.submitter;
	}

	public void setSubmitter(int submitter) {
		this.submitter = submitter;
	}
	
	public String getFd_ParentSubID() {
		return this.fd_ParentSubID;
	}

	public void setFd_ParentSubID(String fd_ParentSubID) {
		this.fd_ParentSubID = fd_ParentSubID;
	}
	
	public String getFd_SubId() {
		return this.fd_SubId;
	}

	public void setFd_SubId(String fd_SubId) {
		this.fd_SubId = fd_SubId;
	}


//	public void getInsertString() {
//		return "insert into t_DeliveryOrder values('"+
//    			fd_SubDeliveryOrderID + "'";
//	}

}